package com.dex4d.ui.mine.activity;

import android.view.View;

import com.dex4d.R;
import com.dex4d.core.AppToolBarBaseActivity;
import com.dex4d.widgets.SimpleListItem;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by chengyuchun on 2018/11/2.
 */
public class SettingActivity extends AppToolBarBaseActivity {

    @BindView(R.id.sli_language)
    SimpleListItem sli_language;

    @BindView(R.id.sli_currency)
    SimpleListItem sli_currency;

    @BindView(R.id.sli_security)
    SimpleListItem sli_security;

    @Override
    protected void initToolbar() {
        showTitle(getString(R.string.setting));
        showBackView();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_setting;
    }

    @Override
    protected void initVariables() {

    }

    @Override
    protected void loadData() {

    }

    @OnClick({R.id.sli_language,R.id.sli_currency,R.id.sli_security})
    public void onViewClick(View view){
        switch (view.getId()){
            case R.id.sli_language:
                openActivity(SettingLanguageActivity.class);
                break;
            case R.id.sli_currency:
                openActivity(SettingCurrencyActivity.class);
                break;

            case R.id.sli_security:
                openActivity(SettingSecurityActivity.class);
                break;
        }
    }
}
